package com.yohann.exam_service.service;

import com.yohann.exam_service.entity.Listening;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yohann.exam_service.entity.vo.ListeningVO;
import com.yohann.utils.result.Result;

import java.util.Map;

/**
 * <p>
 * 听力表 服务类
 * </p>
 *
 * @author Yohann
 * @since 2020-11-19
 */
public interface ListeningService extends IService<Listening> {

    /**
     * 删除听力题目
     *
     * @param id 题目id
     * @return 删除结果
     */
    boolean deleteListening(int id);

    /**
     * 查询听力题目
     *
     * @param id   题目父id
     * @param section 题目章节
     * @return 结果集
     */
    Result queryListening(Integer id, Integer section);

    Map<String, Object> pageQueryListen(int current, int limit, String title);

    ListeningVO getListeningDetail(int id);
}
